package com.zhixiang.xaec.service.demo.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.demo.BookDao;
import com.zhixiang.xaec.entity.demo.Book;
import com.zhixiang.xaec.service.demo.BookService;


@Service
//@Service("demoService")
public class BookServiceImpl extends BaseServiceImpl<Book,Long> implements BookService
{
//    @Autowired  //按类型注入
//    @Resource(name="demoDao") //按名字注入
    @Resource(type=BookDao.class)
    public void setBaseDao(BaseDao<Book,Long> dao)
    {
        setDao(dao);
        
    }


}
